From: Alessandro Bono Date: Fri, 20 Feb 2026 22:57:14 +0000 (+0100) Subject: environment: Use replaceAll() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~26^2~1^2~37 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=10cd1a875ddaff97b0d2220d2ad7f650da8976df;p=gnome-shell.git environment: Use replaceAll() The replace() function expects two parameters, likely the third one was ignored. Use replaceAll() to replace all the occurrences, not just the first one. Fixes: 007b6ca2e ("environment: Add convenience method for implicit animations") Part-of: --- diff --git a/js/ui/environment.js b/js/ui/environment.js index f4ff303d7..2e5baa97e 100644 --- a/js/ui/environment.js +++ b/js/ui/environment.js @@ -159,7 +159,7 @@ function _easeActor(actor, params) { const {promise, callback} = _makeEaseCallback(params, cleanup); // cancel overwritten transitions - const animatedProps = Object.keys(params).map(p => p.replace('_', '-', 'g')); + const animatedProps = Object.keys(params).map(p => p.replaceAll('_', '-')); animatedProps.forEach(p => actor.remove_transition(p)); if (easingDuration > 0 || !isReversed)